package cn.zlj.nmcc.dto;

import cn.zlj.nmcc.constants.BaseConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterDto {
    @Pattern(regexp = BaseConstants.PHONE_REGEX,message = "电话号码格式不正确")
    private String mobile;
    @NotNull(message = "密码不能为空")
    private String password;
    private String imageCode;
    private String imageCodeKey;
    //@NotEmpty(message = "短信验证码不能为空")
    //@NotBlank(message = "短信验证码不能为空")
    private String smsCode;
    private Integer regChannel;//注册的渠道
    private String code;
}
